export default [
  { type: 'index', width: 60, fixed: 'left'  },
  { prop: 'orderId', label: '订单编号', fixed: 'left', width: 120 },
  { prop: 'shipContact', label: '联系人', width: 80 },
  { prop: 'shipPhone', label: '取系人方式' },
  { prop: 'orderType', label: '订单类型', formatter: function(row, colum) {
    return row.orderType === 1 ? '临时用车' : '预约用车'
  } },
  { prop: 'carOcMax', label: '车温', formatter: function(row, colum) {
    return row.carOcMin + '度 ~' + row.carOcMax + '度'
  } },
  { prop: 'carTypeName', label: '车型' },
  // { prop: 'initiatePrice', label: '起步价' },
  { type: 'RMB', prop: 'totlaPrice', label: '订单总价' },
  { type: 'RMB', prop: 'amount', label: '配送价' },
  { prop: 'shipAddress', label: '取货点', showOverflowTooltip: true },
  { prop: 'orderKm', label: '里程数' },
  { prop: 'status', label: '订单状态', formatter: function(row, colum) {
    switch (row.status) {
      case 0:
        return '待支付'
      case 1:
        return '待派遣 '
      case 2:
        return '待取货'
      case 3:
        return '待送达'
      case 4:
        return '上传回单'
      case -1:
        return '订单失败’'
    }
  } },
  { prop: 'exceedPrice', label: '超里费' },
  { prop: 'createtime', label: '创建时间' }
]

